<include file="Public:header" />

<div class="mainarea">
<div class="maininner">

	
	<div class="block style4">
		
		<table cellspacing="3" cellpadding="3"><form method="get" action="__URL__">
		<tr>
		  <th>用户名</th>
		  <td><input type="text" name="username" id="username" /></td>
		  </tr>
		<tr>
		  <th>用户ID</th><td><input type="text" name="userId" id="userId"></td>
		  </tr>
		
		<tr><th>结果排序</th>
		  <td>
		    <select name="orderBy" id="orderBy">
	      <option value="id" selected="selected">默认排序</option>
          <option value="loginCount">登录次数</option>
	      </select>
		    <select name="orderType" id="orderType">
		      <option value="DESC">递减</option>
		      <option value="ASC">递增</option>
		      </select>
		    <select name="pageSize" id="pageSize">
		      <option value="15">默认15个</option>
		      <option value="20">每页显示20个</option>
		      <option value="50">每页显示50个</option>
		      <option value="100">每页显示100个</option>
		      </select>
		    <input type="submit" name="searchsubmit" value="搜索" class="submit" />
            <a href="__URL__" > 默认</a>
<script type="text/javascript">
    /*
	设定选择值
*/
    $("#username").val('{$Think.get.username|formatQuery}');
    $("#userId").val('{$Think.get.userId}');
    $("#orderType").val('{$Think.get.orderType}');
    $("#orderBy").val('{$Think.get.orderBy}');
    $("#pageSize").val('{$Think.get.pageSize}');
</script>		    
		    </td>
		  </tr>
		</form></table>
	</div>
	<form method="post" action="{:U("Admin/doCommand")}">
	<div class="body_content">
<div class="top_action"><a href="{:U("Admin/insert")}">录入管理员</a> | <a href="{:U("AdminRole/index")}">角色管理</a></div>
	<table cellspacing="0" cellpadding="0" id="maintable" class="formtable">
		<tr>
        <th class="th-id">ID</th>
		 <th >用户名</th>
              <th>真实姓名</th>
              <th style="width:12%">类型</th>
              <th style="width:12%">录入时间</th>
		<th style="width:10%">操作</th>
		</tr>
        <present name="dataList">
		<volist name="dataList" id="vo">
		<tr>
		<td><input type="checkbox" name="id[]" value="{$vo.id}"><input name="shuguangUpdateId[]" type="hidden" id="shuguangUpdateId[]" value="{$vo.id}" />{$vo.id}</td>
        <td><strong>{$vo.username}</strong></td>
        <td><input name="realname[]" type="text" id="title[]" title="{$vo.realname}" value="{$vo.realname}" size="25"/></td>
        <td>{$vo.role_name}</td>
        <td>{$vo.create_time|date="Y-m-d",###}</td>
      
        
		<td>   
<a href="{:U("Admin/modify",array('id'=>$vo['id']))}"><img src="__PUBLIC__/Admin/modify22px.gif" alt="编辑" align="absmiddle" /></a><neq name="vo['id']" value="1"> <a href="{:U("Admin/doCommand",array('operate'=>'delete','id'=>$vo['id']))}" class="confirmSubmit"><img src="__PUBLIC__/Admin/delete.gif" alt="删除" align="absmiddle" /></a>
	</neq>
              </td>
		</tr>
		</volist>
         <else />
        <tr>
		  <td colspan="6" style="color:#F00; font-weight:bold">暂无数据</td>
		  </tr>
    </present>
		</table>

	</div>
	 <present name="dataList">
	<div class="foot_action">
    <div class="bat">
	<input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'id')">全选
		<select name="operate" id="operate">
                <option value="update" selected="selected">更新</option>
        </select> 
		<input type="submit" name="submit" value="提交" class="confirmSubmit submit"></div>
	  <div class="pages">{$pageBar}</div>
	</div>
	 </present>
	</form>

</div>
</div>

<div class="side">
<include file="Public:sider" />
</div>
<include file="Public:footer" />